package zack.project.domain.activity.service.product;

import zack.project.domain.activity.adapter.repository.IActivityRepository;
import zack.project.domain.activity.model.entity.SkuProductEntity;
import zack.project.domain.activity.service.IRaffleActivitySkuProductService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author A1793
 */
@Service
public class RaffleActivitySkuProductService implements IRaffleActivitySkuProductService {

    @Resource
    private IActivityRepository activityRepository;

    /**
     * 根据活动id来查找sku商品信息
     * @param activityId
     * @return
     */
    @Override
    public List<SkuProductEntity> querySkuProductEntityListByActivityId(Long activityId) {

        return activityRepository.querySkuProductEntityListByActivityId(activityId);
    }
}
